<?php
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010-2011 GioCMS (http://cms.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @author		NinhGio - ninhgio@gmail.com
 * @since		1.0
 * @version		$Id:$
 */

$this->headTitle($this->TRANSLATOR->translator('user_forgotpassword_page_title') . ' - ' . $this->TRANSLATOR->translator('common_admin_title'));
?>
<div id="wrapper_login">
	<div id="menu">
		<div id="left"></div>
		<div id="right"></div>
		<h2><?php echo $this->TRANSLATOR->translator('user_forgotpassword_title'); ?></h2>
		<div class="clear"></div>		
	</div>
	<div id="desc">
		<div class="body" id="gCoreAuthLogin">
			<div id="messages"></div>
			<div class="col w10 last bottomlast">
				<form action="<?php echo $this->url('core_user_forgotpassword'); ?>" method="post">
					<p>
						<label for="username"><?php echo $this->TRANSLATOR->translator('user_forgotpassword_email'); ?></label>
						<input type="text" name="email" id="email" value="<?php if (isset($this->email)) : ?><?php echo $this->email; ?><?php endif; ?>" size="40" class="text" />
						<br />
					</p>
					<p>
						<?php if (isset($this->tokenElement)) : ?><?php echo $this->tokenElement; ?><?php endif; ?>
						<input type="submit" value="<?php echo $this->TRANSLATOR->translator('auth_login_submit_button'); ?>" class="novisible" />
						<a href="<?php echo $this->url('core_user_forgotpassword'); ?>" class="button form_submit green"><small class="icon play"></small><span><?php echo $this->TRANSLATOR->translator('user_forgotpassword_submit_button'); ?></span></a>
						<span style="height: 28px; line-height: 28px;">&nbsp;<?php echo $this->TRANSLATOR->translator('auth_login_or'); ?>&nbsp;<a href="<?php echo $this->url('core_auth_login'); ?>"><?php echo $this->TRANSLATOR->translator('auth_login_title'); ?></a></span>
						<br />
					</p>
					<div class="clear"></div>
				</form>
			</div>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
		<div id="body_footer">
			<div id="bottom_left"><div id="bottom_right"></div></div>
		</div>
	</div>		
</div>
<script type="text/javascript">
<?php if (isset($this->error)) : ?>
Gio.Message.error('<?php echo $this->error; ?>');
<?php endif; ?>
<?php if (($string = $this->MESSENGER->printMessages()) != null) : ?>
Gio.Message.success('<?php echo $string; ?>');
<?php endif; ?>
</script>